// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.enums;

/**
 * 固资测算结果par枚举
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024-09-25
 */
public enum InvestmentParEnum {
    CAPITAL_EXPENDITURES(1, "Capital Expenditures"),
    GROWTH_VOLUME(2, "Growth Volume in Units"),
    NET_INCREMENTAL(3, "Net Incremental sales"),
    TOTAL_EXPENSES(4, "Total expenses"),
    EXPENSE_SALARY(5, "R&D expense-工资"),
    EXPENSE_OTHER(6, "R&D expense-其他"),
    BOOK(7, "Book Depreciation-Pretax"),
    INCREMENTAL_PERFORMANCE(8, "Incremental Performance Profits"),
    NON_CASH(9, "Profits,Excluding Impact of Non-Cash Items"),
    TAX_DEPRECIATION(10, "Tax Depreciation(See Rates Below)"),
    TAX_BASIS(11, "Profits Before Tax,Tax Basis"),
    INCREMENTAL_TAX(12, "Incremental Tax @15%"),
    WORKING_CAPITAL(13, "Effect on Working Capital"),
    LIQUIDATION(14, "Liquidation of assets at Net Value"),
    TOTAL_CASH(15, "Total Cash Flows"),
    CUMULATIVE_CASH(16, "Cumulative Cash Flows"),
    PAYBACK_MONTHS(17, "Payback Period In Months"),
    PAYBACK_YEARS(18, "Payback Period In Years"),
    PAR(19, "PAR Return on Investment");

    private int value;

    private String name;

    InvestmentParEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getNameByValue(int value) {
        InvestmentParEnum[] arrObj = InvestmentParEnum.values();
        for (InvestmentParEnum obj : arrObj) {
            if (value == obj.getValue()) {
                return obj.getName();
            }
        }
        return " ";
    }

}
